﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="LoadImgList.aspx.cs" Inherits="EWMSWeb.CumMain.LoadImgList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
<div  class="shadow2">
<input type="hidden" class="hidCumid" runat="server" value="1140,1586" id="hidCumid" />
  <table class="display" id="tbCumLoad">
              <thead>
                <tr>
                  <th class="center">序号</th>
                  <th>loadnum</th>
                  <th>cjo</th>
                  <th>货物件数</th>
                  <th>特殊要求</th>
                  <th>工人数</th>
                  <th>状态</th>
                  <th>详情查看</th>
                </tr>
              </thead>
              <tbody>
               <asp:Repeater ID="rept" runat="server">
                                            <ItemTemplate>
												<tr class="odd gradeX">
													<td class="center">
														1
													</td>
													<td>
														<%# Eval("loadnum")%>
													</td>
													<td><%# Eval("cjono") %></td>
													<td><%# Eval("numberestimate")%></td>
                                                    <td><%# Eval("peculiarrequire")%></td>
                                                    <td><%# Eval("workercount")%></td>
                                                    <td><%# Eval("status")%></td>

                                                     <td>
                                                        <%--<a href='javascript:void(0);' onclick='finishLoad(<%#Eval("loadid") %>)'>完成</a>--%>
                                                        <%# Eval("Finish") %>
                                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                                        <a href='UploadImg.aspx?loadid=<%# Eval("loadid") %>'>上传照片</a>
                                                    </td>
                                                     
												</tr>
                                            </ItemTemplate>
                                            </asp:Repeater>
                                        
              
              </tbody>
            </table>
</div>
<script type="text/javascript">

    $(document).ready(function () {

        $('#tbCumLoad').dataTable({ "oLanguage": { "sUrl": "/jquery/jquery.dataTable.cn.txt" },
            "bJQueryUI": true,
            "sPaginationType": "full_numbers",
            'bPaginate': true,
            "bProcessing": true,
            "iDisplayLength": 15,
            "bSort": true,
            "aaSorting": [[0, "asc"]]
        });


    });

    function finishLoad(lid) {
       
            $.ajax({
                type: "post",
                url: "/ashx/Cum.ashx",
                data: {
                    iotype: 'inish'
                   , loadid: lid
                },
                error: function (XmlHttpRequest, textStatus, errorThrown) {
                    alert(XmlHttpRequest.status);
                    alert("提交失败！");
                },
                success: function (msg) {
                    location.reload();
                }
            });
          
       
    }
 
</script>
</asp:Content>
